/**
 *  StaDiUM - State Diagram Unified Modeler
 *  Copyright (C) 2007  Stefan Bucur, Mihai Balan, Claudiu Tanase
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.

 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.

 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, write to the Free Software Foundation, Inc.,
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

/**
 *  File Information
 *
 *  Last Modified On: $Date$
 *  Last Modified By: $Author$
 */

package ro.pub.cs.stadium.testing;

import ro.pub.cs.stadium.document.AbstractDocument;
import ro.pub.cs.stadium.document.MeasureUnit;
import ro.pub.cs.stadium.document.Point;

public class BasicDocument extends AbstractDocument{
	public BasicDocument() {
		this.setXUnit(MeasureUnit.CENTIMETERS);
		this.setYUnit(MeasureUnit.CENTIMETERS);
		
		BasicState state1 = new BasicState("state1");
		state1.setPosition(new Point(10.0f, 5.0f));
		
		BasicState state2 = new BasicState("state2");
		state2.setPosition(new Point(5.0f, 10.0f));
		
		BasicState state3 = new BasicState("state3");
		state3.setPosition(new Point(14.0f, 11.0f));
		
		
		BasicTransition t1 = new BasicTransition("t1");
		t1.setStartPoint(state1);
		t1.setEndPoint(state2);
		
		BasicTransition t2 = new BasicTransition("t2");
		t2.setStartPoint(state1);
		t2.setEndPoint(state3);
		
		getStates().put(state1.getName(), state1);
		getStates().put(state2.getName(), state2);
		getStates().put(state3.getName(), state3);
		
		getTransitions().put(t1.getName(), t1);
		getTransitions().put(t2.getName(), t2);
	}
}
